<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>yonghe</title>
    <%--http://locathost:8080/door/add--%>
    <%--http://locathost:8080/door/css/main.css--%>
    <link rel="stylesheet" href="/css/main.css">
    <link rel="stylesheet" href="/lib/font-awesome-4.7.0/css/font-awesome.min.css">
</head>
<body>

<div class="container-fluid">

    <div class="app-title">
        <div>
            <h1><i class="fa fa-circle-o"></i> 新增门店</h1>
        </div>
        <ul class="app-breadcrumb breadcrumb">
            <li class="breadcrumb-item"><a href="/welcome.html">首页</a></li>
            <li class="breadcrumb-item"><a href="/door/list">门店管理</a></li>
            <li class="breadcrumb-item active">新增门店</li>
        </ul>
    </div>

    <div class="tile">

        <form id="form" action="/door/add" method="post">
            <div class="form-row">
                <div class="form-group col-md-6">
                    <label class="control-label">门店名称</label>
                    <input class="form-control" type="text" name="name" required>
                </div>
            </div>
            <div class="form-row">
                <div class="form-group col-md-6">
                    <label class="control-label">联系电话</label>
                    <input class="form-control" type="text" name="tel" required>
                </div>
            </div>
            <div class="form-row">
                <div class="form-group col-md-6">
                    <label class="control-label">门店地址</label>
                    <input class="form-control" type="text" name="addr" required>
                </div>
            </div>
            <hr>
            <div class="form-group">
                <button class="btn btn-primary" type="submit">
                    <i class="fa fa-fw fa-lg fa-check-circle"></i>保存
                </button>
                &nbsp;&nbsp;
                <a class="btn btn-secondary" href="javascript:history.back()">
                    <i class="fa fa-fw fa-lg fa-times-circle"></i>取消
                </a>
            </div>
        </form>

    </div>
    <!-- /.tile -->
</div>
<!-- /.container-fluid -->

<!-- Essential javascripts for application to work-->
<script src="/js/jquery.min.js"></script>
<script src="/js/popper.min.js"></script>
<script src="/js/bootstrap.min.js"></script>
<script src="/js/main.js"></script>
<!-- Page specific javascripts-->
<script src="/js/plugins/jquery.validate.min.js"></script>
<script>
    // 表单验证
    $("#form").validate();
</script>

</body>
</html>
